var events = require('events');

var eventEmitte=new events.EventEmitter();

eventEmitte.on('hello',function(data){
    console.log(data.name)
    console.log('hello')

})

eventEmitte.emit('hello',{name:'arno'});
console.log('end')